
<?php

require_once './system/config.php';//Include de configuração
/*
if($_SESSION['logado'] != 1){
    return include 'login.php?erro=1';
}
*/
/*
// Conexão com o banco de dados ////////////////////////////////////////////////////////////////////////////////////
$conn = new db();
$conn->open();

*/

$tpl = new TemplatePower( VIEW_PATH."principal.html" );//instancia objeto TemplatePower, cria view no html principal
$tpl->assignGlobal('APP_NAME', APP_NAME);//seta variavel global
$tpl->assignGlobal('PAGE', "Registrar");//seta variavel global
$tpl->assignInclude( "menu", VIEW_PATH."modules/mod-menu/menu.html" );
$tpl->assignInclude( "modulos", VIEW_PATH."registrar.html" );

$tpl->prepare();

$tpl->printToScreen();

$lala = $_SESSION['logado'];
var_dump($lala);